package com.appkubes.portal.admin.application.auth.controller;


import com.appkubes.common.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "认证服务器")
@RestController
@RequestMapping("/auth/keycloak")
public class KeyCloakController {
    @Value("${kylin.defaultValue:123}")
    String defaultValue;

    @Value("${kylin.list:}")
    List<String> list;


    @Value("${kylin.defaultList:}")
    List<String> defaultList;

    @ApiOperation("测试")
    @GetMapping("/test")
    public Response test(String str) {

        Integer pos = str.indexOf(defaultValue);

        return Response.success(pos);
    }


}
